<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/', function () {
    return view('welcome');
});
// 404页面
Route::get('404',function(){
	abort(404);
});

// 隐式路由器 后台登录
Route::Controller('/admin/log','LoginController');
// 隐式路由器 前台登录
Route::Controller('/log/log','LoginController');
// 隐式路由器 详情页面
Route::Controller('/xiangqing/xiangqing','XqController');

// 加入购物车
Route::post('/cart/insert','CartController@insert');
// 查看购物车
Route::get('/cart/index','CartController@index');


// 注册
Route::get('register','LoginController@register');
Route::post('register','LoginController@doregister');

//邮件注册
Route::get('mail','LoginController@sendMail'); 

// 激活
Route::get('jihuo','LoginController@jihuo');


// 发送密码重置链接路由
Route::get('password/email', 'Auth\PasswordController@getEmail');
Route::post('password/email', 'Auth\PasswordController@postEmail');

// 密码重置路由
Route::get('password/reset/{token}', 'Auth\PasswordController@getReset');
Route::post('password/reset', 'Auth\PasswordController@postReset');